package com.tanklab.signature.service;

import com.tanklab.signature.ds.req.AddApprovallogReq;
import com.tanklab.signature.ds.req.AddFileReq;
import com.tanklab.signature.ds.resp.CommonResp;

public interface ApprovalService {

////    CommonResp addApproval(AddApprovallogReq addApprovallogReq);
//    CommonResp addApproval(AddApprovallogReq addApprovallogReq, String token);
//
//
//    CommonResp queryAllApprovalStates();
    /**
     * 审批申请
     * @param requestId 申请ID
     * @param action 审批动作(approve/reject)
     * @param comments 审批意见
     * @param openid 审批人openid
     * @return 操作结果
     */
    CommonResp approveRequest(Long requestId, String action, String comments, String openid);

    /**
     * 查询待我审批的申请
     * @param openid 用户openid
     * @return 审批列表
     */
    CommonResp getPendingApprovals(String openid);

    /**
     * 查询我已审批的申请
     * @param openid 用户openid
     * @return 审批历史
     */
    CommonResp getApprovalHistory(String openid);

    /**
     * 查询申请的审批日志
     * @param requestId 申请ID
     * @return 审批日志
     */
    CommonResp getRequestApprovalLogs(Long requestId);
}
